Assertion Diversion ^^^^^ **Definition:** * Where the wrong sort of assert is used, thus making a test failure harder to understand **Code Example:** .. code-block:: java Boolean isValid = false; if (actualResult.contains("foo")) { isValid = true; } assertEquals(true, isValid) **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `Test Smells - The Coding Craftsman `_ :octicon:`file-code;1em`